
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>用户列表</title>
    <!--导入框架样式文件-->
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/bootstrap.min.css" />
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery1.12.4.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script>
    <style>

    </style>
</head>

<body>
<div class="container">
    <div class="panel panel-default">
        <div class="panel-heading clearfix">
            <a href="item-add.html"  class="btn btn-primary pull-right" >添加用户</a>
        </div>

        <table class="table table-bordered table-hover ">
            <tr class="success">
                <th>编号</th>
                <th>用户名</th>
                <th>密码</th>
                <th>真实姓名</th>
                <th>邮箱</th>
                <th>电话</th>
                <th>操作</th>
            </tr>
            <c:forEach items="${users}" var="u" >

                <tr>
                    <td>${u.uid}</td>
                    <td>${u.username}</td>
                    <td>${u.password}</td>
                    <td>${u.realname}</td>
                    <td>${u.email}</td>
                    <td>${u.telephone}</td>
                    <td>
                        <a class="btn btn-success btn-sm" href="${pageContext.request.contextPath}/updateUI?uid=${u.uid}">修改</a>&nbsp;
                        <a class="btn btn-danger btn-sm" href="${pageContext.request.contextPath}/delete?uid=${u.uid}">删除</a>
                    </td>
                </tr>
            </c:forEach>



        </table>
    </div>
</div>
</body>

</html>